package com.oumiao.echarts.config;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class SocketVO<T> implements Cloneable{

    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date Time;

    private T data;

    @Override
    public SocketVO<T> clone(){
        try {
            return (SocketVO<T>) super.clone();
        }catch (Exception e){
            return new SocketVO<T>();
        }
    }
}
